package com.hnkywl.sts.entity.htgl;

import com.hnkywl.sts.entity.base.Sjzdz;
import com.hnkywl.sts.entity.organ.Gsjg;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;

import javax.persistence.*;

/**
 * 付款方式
 * User: ccr
 * Date: 14-2-25
 * Time: 下午5:24
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "T_BIZ_FKFS")
public class Fkfs {
    @Id
    @SequenceGenerator(name = "seqFkfs", allocationSize = 1, sequenceName = "SEQ_BIZ_FKFS")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqFkfs")
    private Long id;
    /**
     * 付款时间起始
     */
    private Integer fksjStart;
    /**
     * 付款时间
     */
    private Integer fksj;

    /**
     * 付款利率
     */
    private Double fkll;
    /**
     * 付款公式
     */
    private String fkgs;

    //付款类型 0 现金 1 承兑
    @ManyToOne
    @JoinColumn(name = "FKLX_SJZDZ_ID")
    @NotFound(action = NotFoundAction.IGNORE)
    private Sjzdz fklx;

    @ManyToOne
    @JoinColumn(name = "HT_ID")
    private Ht ht;

    /**
     * 关系企业机构
     */
    @ManyToOne
    @JoinColumn(name = "QYJG_ID")
    private Gsjg qyjg;

    public String getFkgs() {
        return fkgs;
    }

    public void setFkgs(String fkgs) {
        this.fkgs = fkgs;
    }

    public Sjzdz getFklx() {
        return fklx;
    }

    public void setFklx(Sjzdz fklx) {
        this.fklx = fklx;
    }

    public Gsjg getQyjg() {
        return qyjg;
    }

    public void setQyjg(Gsjg qyjg) {
        this.qyjg = qyjg;
    }

    public Ht getHt() {
        return ht;
    }

    public void setHt(Ht ht) {
        this.ht = ht;
    }

    public Double getFkll() {
        return fkll;
    }

    public void setFkll(Double fkll) {
        this.fkll = fkll;
    }

    public Integer getFksjStart() {
        return fksjStart;
    }

    public void setFksjStart(Integer fksjStart) {
        this.fksjStart = fksjStart;
    }

    public Integer getFksj() {
        return fksj;
    }

    public void setFksj(Integer fksj) {
        this.fksj = fksj;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}
